<div class="attributes_info">
  <% attributes.each do |att, properties| %>
      <div class="property">
        <span class="attribute"><%= att %></span>
        <br/>
        <% unless properties.is_a?(String) %>
            <div id="select_privacy">
              <span>Access privacy: </span>
              <%= select "privacy", att, {"Hidden" => "Hidden", "Public" => "Public", "Private" => "Private"},{:selected => properties[:privacy]} %>
              <span class="rdf_info"><%= "(Current value: #{properties[:privacy]})" %></span>
            </div>
            <br/>

            <div id="<%= "select_#{model}_#{att}" %>">
              <span>Rdf Type: </span>
              <%= select "rdf_type_#{type}", att, namespaces, {:prompt => "Select a namespaces..."} -%>
              <span class="rdf_info"><%= "(Current value: #{properties[:namespace]})" %></span>
            </div>
            <%= observe_field "rdf_type_#{type}_#{att}", {:url => {:controller => "easy_datas", :action => "load_properties",
                                                                   :block=>"properties_#{att}", :attribute => att, :model => model, :type => type},
                                                          :with => '"id="+value',
                                                          :on => :selected,
                                                          :update => "properties_#{model}_#{att}"}
            %>
            <br/>

            <div id="<%= "properties_#{model}_#{att}" %>">&nbsp;</div>
        <% else %>
            <span> This attribute can't be publicated</span>
        <% end %>
      </div>
      <br/>
  <% end %>
</div>

